<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">添加专题</div>
    <div class="main_soso">
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">订单基本信息</span> </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
        <form action="/article/su_subject.shtml" name="subject" method="post"   enctype="multipart/form-data">
         <input type="hidden" name="id" value="${subject.id}" />
	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
	      <tbody>
	         <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >标题：</td>
	              <td> <input type="text" name="subject.title" value="${subject.title}" maxlength="128" style="width:128px;" /></td>
             </tr>
             
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" align="right">是否显示：</td>
	              <td> 
	                 <input type="checkbox" name="subject.state" value="1" <c:if test="${subject.state!='0'}">checked="checked"</c:if> />
	              </td>
             </tr>
              <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" align="right">图片：</td>
	              <td> 
	                   <input type="file" name="ico" value="" />
	                   <c:if test="${!empty subject.icoPath}"><br/>
	                      <img src="${subject.icoPath}" width="80" />
	                   </c:if>
	              </td>
             </tr>
             <tr>
	              <td width="25%" style="background:#F0F8FF;text-align: right;" >描述：</td>
	              <td> <input type="text" name="subject.description" value="${subject.description}" maxlength="256" style="width:256px;"/></td>
             </tr>
             <tr>
	              <td colspan="2"> <input type="button" onclick="_sumbit(this)" value="确定" />
	              </td>
             </tr>
         </tbody>
	    </table>
	  </form>
  </div>
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> 
<script type="text/javascript" src="/scripts/util.js"></script> 
<script type="text/javascript" src="/scripts/form_validate.js"></script> 
<script type="text/javascript"> 
 validate.addvalidte(document.forms["subject"],{
        rules:{
           "subject.title":{checkNull:true}
           }
 });
 function _sumbit(th){
     validate.submit();
 }
 
</script>
